package com.ctgu.B.B1.condition;

import com.github.oxo42.stateless4j.delegates.FuncBoolean;

/**
 * @author xiaozhiyong03@gmail.com
 * @data 2024/11/02 周六 14:49:20.94
 */
public class GuardCondition {
    private boolean empty;
    public FuncBoolean isEmpty() {
        return () -> empty;
    }
    public FuncBoolean hasWater() {
        return () -> !empty;
    }

    public void setEmpty(boolean empty) {
        this.empty = empty;
    }
}
